package fr.neyb.bernouilli.problem008;

import java.io.IOException;
import java.io.InputStreamReader;

public class Entry {

	/**
	 * @param args
	 * @throws IOException
	 * @throws NumberFormatException
	 */
	public static void main(String[] args) throws NumberFormatException,
			IOException {
		ProdReader pr = new ProdReader(new InputStreamReader(
				Entry.class.getResourceAsStream("suite.txt")));
		int i = 0;
		int max = 0;

		while ((i = pr.next()) >= 0) {
			if (i > max)
				max = i;
		}
		
		System.out.println(max);
	}

}
